﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;

namespace aoprinter.Model
{
    [Serializable]
    public class ModBlock : CloneObject<ModBlock>
    {
        public ModBlock()
        {
            Size = AutoSize;
            Location = ZeroPoint;
            Position = EnmPosition.Suspend;
            BlockType = GetBlockType();
            BindType = EnmBindType.Self;
        }
        public EnmBlockType BlockType
        {
            set;
            get;
        }
        protected virtual EnmBlockType GetBlockType()
        {
            return EnmBlockType.Block;
        }
        public string BindID
        {
            set;
            get;
        }
        public string MemberID
        {
            set;
            get;
        }
        public bool IsList
        {
            set;
            get;
        }
        public bool IsCustom
        {
            set;
            get;
        }
        public EnmBindType BindType
        {
            set;
            get;
        }
        public PointF Location
        {
            set;
            get;
        }
        public SizeF Size
        {
            set;
            get;
        }
        public EnmPosition Position
        {
            set;
            get;
        }
        public float Interval
        {
            set;
            get;
        }
        public ModRegionStyle BackgroundStyle
        {
            set;
            get;
        }
        public ModLineStyle BorderStyle
        {
            set;
            get;
        }
    }
}